import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
}, {
  path: '/test',
  //component: Layout,
  //redirect: '/test/index',
  //children: [{
    //path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test',
      keepAlive: true,
      isTab: false,
      isAuth: false
    
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/test')
  //}]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/user/info')
  }]
},
{
  path: '/workflow/process',
  component: Layout,
  hidden: true,
  permissions: ['workflow:process:query'],
  children: [
    {
      path: 'start/:deployId([\\w|\\-]+)',
      component: () => import('@/views/workflow/work/start'),
      name: 'WorkStart',
      meta: { title: '发起流程', icon: '' }
    },
    {
      path: 'detail/:procInsId([\\w|\\-]+)',
      component: () => import('@/views/workflow/work/detail'),
      name: 'WorkDetail',
      meta: { title: '流程详情', activeMenu: '/work/own' }
    }
  ]
},
{
  path: '/tool',
  component: Layout,
  hidden: true,
  children: [
    {
      path: 'build/index',
      component: window.FormBuilder,
      name: '表单构建',
      meta: { title: '表单配置', icon: '' }
    }
  ]
}]
